package com.test.group6.controller;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.test.group6.domain.EnterpriseInformation;
import com.test.group6.domain.WorkesInformation;
import com.test.group6.service.WorkesDetailsService;
/**
 *@author chen_kai 
 *@version 1.0
 */
@RestController
@RequestMapping("/WorkesDetailsController")

public class WorkesDetailsController {    
	@Autowired
	private WorkesDetailsService workesDetailsService;

	/**
	 *@param  id 企业高管编号
	 *@return {@link EnterpriseInformation}
	 * 
	 */
	@RequestMapping("/queryWorkesInformationById")
	public WorkesInformation queryWorkesInformationById(@Param("id") String id) {  //查询企业高管信息
		return  workesDetailsService.queryWorkesInformationById(id);
	}
}
